﻿<Window x:Class="JellystonePark.JellystoneWPF.View.SetupWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xc="clr-namespace:JellystonePark.JellystoneWPF.ViewModel"
        xc:DialogCloser.DialogResult="{Binding DialogResult}"
        Title="Új játék beállítása" SizeToContent="WidthAndHeight" Padding="5" ResizeMode="NoResize">
    <!--<Window.DataContext>
        <xc:SetupViewModel/>
    </Window.DataContext>-->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel>
            <Label Content="Játékos neve:" Name="PlayerNameLabel" Margin="3, 0, 3, 0"/>
            <TextBox Name="PlayerName" Text="{Binding PlayerName}" Margin="3, 0, 3, 0"/>
            <GroupBox Header="Nehézségi szint" Margin="3, 0, 3, 0">
                <StackPanel>
                    <RadioButton GroupName="Difficulty" Content="Könnyű" IsChecked="{Binding IsGameEasy}"/>
                    <RadioButton GroupName="Difficulty" Content="Közepes" IsChecked="{Binding IsGameModerate}"/>
                    <RadioButton GroupName="Difficulty" Content="Nehéz" IsChecked="{Binding IsGameHard}"/>
                </StackPanel>
            </GroupBox>
            <CheckBox Content="Alapértelmezett pályacsomag használata" Margin="3, 3, 3, 0" IsChecked="{Binding IsDefaultLevels}"/>
            <StackPanel Orientation="Horizontal" Margin="3" HorizontalAlignment="Stretch" >
                <Button Content="Játék indítása" Command="{Binding StartGameCommand}" HorizontalAlignment="Stretch"  IsDefault="True" Margin="0, 0, 3, 0"/>
                <Button Content="Mégse" IsCancel="True"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
